package com.raining.inningz.ui.home;

import android.graphics.Color;
import android.os.Bundle;
import android.support.v4.app.FragmentManager.OnBackStackChangedListener;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;

import com.raining.inningz.R;
import com.raining.inningz.baseclass.BaseFragment;
import com.raining.inningz.manager.NotifyManager;


public class AboutFragment extends BaseFragment{
	
	
	private LayoutInflater mInflater;
	private View view;
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		mInflater = inflater;
		
		view = inflater.inflate(R.layout.fragment_about, container, false);
		context = mInflater.getContext();
		
		

		initialiseUI();

		return view;
	}

	private void initialiseUI() {
		
		
		setHeaderIntialize(view);
	//	setLeftSelector(R.drawable.tab3, R.drawable.tab3_h);
		//setRightSelector(R.drawable.tab4, R.drawable.tab4_h);
		setLeftReturn();
		setLeftTextSelector(resources.getColor(R.color.top_bar_Button), resources.getColor(R.color.top_bar_Button_press), "InningZ");
		setRightTextSelector(resources.getColor(R.color.top_bar_Button), resources.getColor(R.color.top_bar_Button_press), "Save");
		setHeaderTitle(resources.getString(R.string.about),Color.BLACK);
		
		
		getBtnLeft().setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				NotifyManager.showShortToast(context, "HAI"+getFragmentManager().getFragments().size());
				
				fragmentManager.popBackStack();
				
			}
		});
		
	}

}
